<template>
    <div>
        <el-page-header @back="goBack" content="返回首页"></el-page-header>
        <el-result icon="error" title="404" subTitle="您访问的页面不存在">
            <template slot="extra">
                <el-button type="primary" size="medium" @click="goBack">返回首页</el-button>
            </template>
        </el-result>
    </div>
</template>

<script>
    export default {
        methods:{
            goBack(){
                this.$router.push({name:"Home"})
            }
        }
    }
</script>

<style scoped>

</style>
